﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CUREDataAccessLayers.Harmful;
using CUREEntity.Harmful;
using System.Data;

namespace CUREBusinessLogicLayer.Harmful
{
    public class TBookBll
    {
        TBookDal Tbdal = new TBookDal();
        /// <summary>
        /// 获取不良台账列表
        /// </summary>
        /// <param name="fid"></param>
        /// <returns></returns>
        public DataSet GetLedgerList(IDictionary<string, object> where, int pageIndex, int pageSize, out int totalRecordCount, out int totalPageCount)
        {
            return Tbdal.GetLedgerList(where, pageIndex, pageSize, out totalRecordCount, out totalPageCount);
        }
        /// <summary>
        /// 获取技术判定书是新增还是编辑
        /// </summary>
        /// <param name="fid"></param>
        /// <returns></returns>
        public string GetAction(string hid, out string id)
        {
            return Tbdal.GetAction(hid, out id);
        }
        /// <summary>
        /// 获取技术判定书是新增还是编辑
        /// </summary>
        /// <param name="fid"></param>
        /// <returns></returns>
        public DataTable GetBook(string id)
        {
            return Tbdal.GetBook(id);
        }
        /// <summary>
        /// 新增获取ID
        /// </summary>
        /// <param name="fid"></param>
        /// <returns></returns>
        public string GetID()
        {
            return Tbdal.GetID();
        }
        /// <summary>
        /// 新增技术判定书
        /// </summary>
        /// <param name="fid"></param>
        /// <returns></returns>
        public bool InsertBook(TBookModel tbModel)
        {
            return Tbdal.InsertBook(tbModel);
        }
        /// <summary>
        /// 更新技术判定书
        /// </summary>
        /// <param name="fid"></param>
        /// <returns></returns>
        public bool UpdateBook(TBookModel tbModel)
        {
            return Tbdal.UpdateBook(tbModel);
        }


    }
}
